import {Injectable} from '@angular/core';
import {HttpClient} from '@angular/common/http';
import {HTTP_URLS} from '../../config/app-http.url';

@Injectable({
  providedIn: 'root'
})
export class PersonalInfoService {

  constructor(private http: HttpClient) {
  }

  /**
   * 获取上传文件签名
   */
  public getUploadFileSign() {
    return this.http.get<any>(HTTP_URLS.getUploadFileSign);
  }

  /**
   * 创建app文件
   */
  public signUploadFile() {
    return HTTP_URLS.openUploadFile;
  }
}
